home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Tools - Objects / Macintosh Programmer’s Workshop / MPW 3.1 / MPW / Interfaces / CIncludes / StdDef.h < prev    next >
Text File  |  1990-12-13  |  351b  |  23 lines

  1. /*
  2.     StdDef.h -- Common definitions
  3.     
  4.     Copyright Apple Computer,Inc.    1987, 1988
  5.     All rights reserved.
  6.  
  7. */
  8.  
  9. #ifndef __STDDEF__
  10. #define __STDDEF__
  11.  
  12. typedef int ptrdiff_t;
  13. typedef unsigned int size_t;
  14. typedef short wchar_t;
  15.  
  16. #ifndef NULL
  17. #define NULL 0
  18. #endif NULL
  19.  
  20. #define offsetof(structure,field) ((size_t)&((structure *) 0)->field)
  21.  
  22. #endif __STDDEF__
  23.